import React from 'react'
import ReactDOM from 'react-dom'

class App extends React.Component {
  render () { 
    // 可以在类中通过 this.props 获取数据
    console.log(this.props)
    return <h1>hello class - { this.props.name }</h1>
  }
}

ReactDOM.render(
  <App name="吴大勋"></App>,
  document.getElementById('root')
)